{% extends "./inc/base.html" %} {% block content %}

<!-- -->
<section>
	<div class="container">
		<div class="row">
			<!-- LEFT -->
			{#% include "./inc/user_left.html" %#}
			<!-- RIGHT -->
			<div class="col-md-12">
				<h4 class="page-header margin-top-0"><i class="fa fa-reorder fa-lg text-default"></i>
					{{controller.meta_title}}<!--<button class="btn btn-primary btn-xs pull-right" data-toggle="modal" data-target=".add-addr-dialog">添加新地址</button>-->
				</h4>
				<!--<form role="form" method="get" action="/center/reconciliation/contract" class="form-horizontal form-info">
					<div class="form-group">
						<div class="col-md-2">
							<input type="text" placeholder="请输入订单号" class="form-control" name="order_no" value="{{order_no}}">
						</div>
						<div class="col-md-2">
							<input type="text" placeholder="请输入产品名称" class="form-control" name="title" value="{{title}}">
						</div>
						<div class="col-md-2">
							<select type="text" placeholder="请选择状态" class="form-control" name="status">
								<option value="" {%if status==""%}selected{%endif%}>全部</option>
								<option value="2" {%if status=="2"%}selected{%endif%}>等待审核</option>
								<option value="3" {%if status=="3"%}selected{%endif%}>已审核</option>
								<option value="6" {%if status=="6"%}selected{%endif%}>已作废</option>
								<option value="4" {%if status=="4"%}selected{%endif%}>已完成</option>
							</select>
						</div>
						<div class="col-md-2">
							<button class="btn btn-primary" type="submit" > 查询 </button>
							<a href="/center/reconciliation/order" class="btn btn-primary" > 重置 </a>
						</div>
					</div>
				</form>-->
				<div class="table-responsive">
					<!--<table class="table  table-striped table-vertical-middle">
						<thead>
						<tr>
							<th >订单单号</th>
							<th>产品名称</th>
							<th>产品编号</th>
							<th>规格型号</th>
							<th>订单数量</th>
							&lt;!&ndash;<th>单价</th>
							<th>金额</th>&ndash;&gt;
							<th>订单状态</th>
							&lt;!&ndash;<th>操作</th>&ndash;&gt;
						</tr>
						</thead>
						<tbody>
						{% for item in list %}
						{% for v in item.goods%}
						<tr>
							<td >{{item.order_no}}</td>
							<td>{{v.title}}</td>
							<td>{{v.product_id}}</td>
							<td>{{v.type}}</td>
							<td>{{v.qty}}</td>
							&lt;!&ndash;<td>{{v.unit_price}}</td>
							<td>{{v.price}}</td>&ndash;&gt;
							<td>
								{%if item.status ==2 %}<span class="text-muted">等待审核 </span>{%elif item.status ==3%}<span class="text-success">已审核</span>{%elif item.status ==6%}<del>已作废</del>{%elif item.status == 4%}<span class="text-primary">已完成</span>{%endif%}
							</td>
							&lt;!&ndash;<td>
								<a href="contractsee?id={{item.id}}" data-toggle="ajaxModal"><i class="fa fa-eye"></i> 查看详情</a>
							</td>&ndash;&gt;
						</tr>
						{% endfor %}
						{% else %}
						<tr>
							<td colspan="11">
								<div class="alert alert-warning alert-block">
									<button data-dismiss="alert" class="close" type="button">×</button>
									<p>暂无订单信息！</p>
								</div>
							</td>
						</tr>
						{% endfor %}
						</tbody>
					</table>-->
					<iframe src="http://218.24.153.126:8089/WebReport/ReportServer?formlet=HJ%2Fmh%2F010_MH_XSHT.frm&user_code={{controller.user.user_code}}" height="428px" width="100%"></iframe>
				</div>
				<!-- PAGINATION -->
				<!--<div class="text-right">
					&lt;!&ndash; Pagination Default &ndash;&gt;
					{{pagination | safe}}
					&lt;!&ndash; /Pagination Default &ndash;&gt;
				</div>-->
				<!-- /PAGINATION -->
			</div>
		</div>
	</div>
</section>
<!-- / -->

{% endblock %}